﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Fantacid303.ProcessAffinityControl.Common
{
	/// <summary>
	/// Represents an exception which will be thrown if a process was not found.
	/// </summary>
	public class ProcessNotFoundException : Exception
	{
		/// <summary>
		/// Gets the process id.
		/// </summary>
		/// <value>The process id.</value>
		public uint ProcessId
		{
			get; private set;
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="ProcessNotFoundException"/> class.
		/// </summary>
		/// <param name="processId">The process id.</param>
		public ProcessNotFoundException(uint processId) : base ("Cannot find process with PID = " + processId)
		{
			this.ProcessId = processId;	
		}
	}
}
